//package ly.gupao.edu.spring;
//
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.web.filter.OncePerRequestFilter;
//
//import javax.servlet.FilterChain;
//import javax.servlet.ServletException;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import java.io.IOException;
//
///**
// * @author: liyang
// * @date：2018/6/14 0014
// * describe：
// */
//@Slf4j
//public class MyFilter extends OncePerRequestFilter {
//
//    @Override
//    protected void doFilterInternal(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, FilterChain filterChain) throws ServletException, IOException {
//        log.info("init filter！");
//        httpServletRequest.setAttribute("test", "test");
//        filterChain.doFilter(httpServletRequest, httpServletResponse);
//    }
//}
